{%include file="m.index.header.tpl.php"%}
<!--主体部分-->
<div class="container" style="margin-top:70px;">
	<div class="row" style="margin-top:10px;">
		<form action="" method="get">
			<div class="col-sm-12 distance" >
				<div class="form-group">
					<label for="inputEmail3" class="col-sm-2 control-label">学年学期:</label>
					<div class="col-sm-10">
						<select class="form-control" id="semester_id" name="semester_id">
							<option value="">请选择</option>
							{%foreach from=$semester_lists key=key item=value%}
							<option value="{%$key%}" {%if $key==$semester_id%}selected{%/if%}>
								{%$value%}</option>
							{%/foreach%}
						</select>
					</div>
				</div>
			</div>
			<div class="col-sm-12 distance" >
				<div class="form-group">
					<label for="inputEmail3" class="col-sm-2 control-label">学月:</label>
					<div class="col-sm-10">
						<select class="form-control" name="semester_month" id="semester_month">
							<option value="">请选择</option>
							{%foreach from=$month_lists key=key item=value%}
							<option value="{%$key%}" {%if $key==$semester_month%}selected{%/if%}>
								{%$key%}</option>
							{%/foreach%}
						</select>
					</div>
				</div>
			</div>
			<div class="col-xs-12  distance hierarchy2">
				<div class="form-group text-center" style="padding-top:0px;">
					<input type="hidden" name="a" value="sanitation.monthlist">
					<button type="submit" class="btn btn-success" style="width:80%">搜索</button>
				</div>
			</div>
		</form>
	</div>
	<div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
		<h5  class="navbar-text text-center" style="color:red">{%$semester_data.semester_xname%}{%$semester_data.semester_name%}各班每月汇总表</h5>
		<!-- <caption>2014-2015学年第一学期第一周</caption>-->
		{%foreach from=$class_lists key=k item=value%}
		<table class="table table-striped table-bordered text-center"  id="middles">
			<tr>
				<th colspan="2" class="text-center">班级:{%$value.class_name%}</th>
			</tr>
			{%foreach from=$weeks name=foo key=key item=v%}
			<tr>
				<td>第{%$v%}周</td>
				<td><table class="table table-striped table-bordered text-center">
						<tr>
							<td>常规</td>
							<td>{%$value.infos[$smarty.foreach.foo.index].sanitation_rule%}</td>
						</tr>
						<tr>
							<td>其他</td>
							<td>{%$value.infos[$smarty.foreach.foo.index].sanitation_rests%}</td>
						</tr>
					</table></td>
			</tr>
			{%/foreach%}
			<tr>
				<td>合计</td>
				<td><table class="table table-striped table-bordered text-center">
						<tr>
							<td>常规</td>
							<td>{%$value.infos[$len].sanitation_rule%}</td>
						</tr>
						<tr>
							<td>其他</td>
							<td>{%$value.infos[$len].sanitation_rests%}</td>
						</tr>
					</table></td>
			</tr>
		</table>
		{%/foreach%}
	</div>
</div>
<!--container  end-->
<!--主体部分  end-->
<!--底部-->
{%include file="m.index.footer.tpl.php"%}
<!--container  end-->

<!--底部end-->
<script src="mstatic/js/jquery.min.js" type="text/javascript"></script>
<script src="mstatic/js/bootstrap.min.js"  type="text/javascript"></script>
</body>
</html>
